package de.tuberlin.project.oose.figures;

import java.awt.geom.Point2D;

import org.jhotdraw.draw.TextFigure;
import org.jhotdraw.draw.tool.TextEditingTool;
import org.jhotdraw.draw.tool.Tool;

public class VornameTextFigure extends TextFigure{
	/**
     * Returns a specialized tool for the given coordinate.
     * <p>Returns null, if no specialized tool is available.
     */
    @Override
    public Tool getTool(Point2D.Double p) {
        if (isEditable() && contains(p)) {
        	VornameTextEditingTool t = new VornameTextEditingTool(this);
            return t;
        }
        return null;
    }
}
